package org.nfyszny.zzzs.modules.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.nfyszny.zzzs.modules.entity.ZzzsRecordingOfProductionCapacity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 生产能力备案
 * @Author: jeecg-boot
 * @Date: 2022-11-11
 * @Version: V1.0
 */
public interface ZzzsRecordingOfProductionCapacityMapper extends BaseMapper<ZzzsRecordingOfProductionCapacity> {

    @Update("update zzzs_recording_of_production_capacity set is_delete=#{record.isDelete}" +
            "where id=#{record.id}")
    int updateIsDeleteById(@Param("record") ZzzsRecordingOfProductionCapacity record);

    @Select("select * from zzzs_recording_of_production_capacity where id=#{id} ")
    ZzzsRecordingOfProductionCapacity getHaveInfoById(String id);
}

